package main

import (
	"server/src/logging"
	"server/src/storage"
)

const Version string = "地图接口服务器 v1.0 build221212"

func main() {
	initGlobal()

	storage.Init(storage.RootPath())

	// 启动日志
	logging.DisableBootScreenLog()
	logging.LogBoot()

	zLog(nil, Version, "启动")

	cfg, err := loadConfig("")
	if err != nil {
		zLog(nil, "读配置文件失败：", err.Error())
		return
	}

	if ListenHttpService(cfg) != nil {
		zLog(nil, err.Error())
	}
}
